Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.
authorLi Yuan <li.yuan@sun.com>
Fri, 11 Jan 2008 09:22:25 +0000 (09:22 +0000)
committerLi Yuan <liyuan@src.gnome.org>
Fri, 11 Jan 2008 09:22:25 +0000 (09:22 +0000)
2008-01-11  Li Yuan  <li.yuan@sun.com>

        * gailtreeview.c: (gail_tree_view_get_n_rows):
        Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.

svn path=/trunk/; revision=19349

modules/other/gail/ChangeLog [new file with mode: 0644]
modules/other/gail/gailtreeview.c

diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog
new file mode 100644 (file)
index 0000000..9217210
--- /dev/null
@@ -0,0 +1,5 @@
+2008-01-11  Li Yuan  <li.yuan@sun.com>
+
+       * gailtreeview.c: (gail_tree_view_get_n_rows):
+       Bug #508715. Should use gtk_tree_path_free to free a GtkTreePath.
+
index e2814127db12090f95da1c1c9b3a64acb542617e..cee016cbaa8b4014c1a69935399b74f184133bc5 100644 (file)
@@ -1256,7 +1256,7 @@ gail_tree_view_get_n_rows (AtkTable *table)
       root_tree = gtk_tree_path_new_root ();
       iterate_thru_children (tree_view, tree_model,
                              root_tree, NULL, &n_rows, 0);
-      g_free (root_tree);
+      gtk_tree_path_free (root_tree);
     }
 
   return n_rows;